package com.fac.dto;

import com.fac.constant.EquipmentStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(description = "更新设备请求参数")
public class EquipmentUpdateDTO implements Serializable {

    @NotNull(message = "设备ID不能为空")
    @ApiModelProperty(value = "设备ID", required = true, example = "1")
    private Long equipmentId;

    @NotBlank(message = "设备名称不能为空")
    @ApiModelProperty(value = "设备名称", required = true, example = "数控车床")
    private String name;

    @ApiModelProperty(value = "位置", example = "A区-01-001")
    private String location;

    @ApiModelProperty(value = "规格", example = "1500x800x1200mm")
    private String specifications;

    @NotNull(message = "设备状态不能为空")
    @ApiModelProperty(value = "设备状态", required = true, example = "IDLE", allowableValues = "IDLE,IN_USE,UNDER_REPAIR,SCRAPPED")
    private EquipmentStatus status;
} 